<form id="paramsForm" action="<?php // print url_for('mesdemandes/tdb'); ?>" method="post" style="margin: 0; padding: 0;"  tmt:validate = "true" tmt:callback="errorOnLabels">
<fieldset><legend><?php echo __('Parameters');?></legend>
<input type="hidden" name="sf_method" value="put" />
<?php
/*Have to use this, because form looses its attributes sometimes... */
if(isset( $_SESSION['extraAttributes'])){
	$extraAtt = $_SESSION['extraAttributes'];
}else{
	$extraAtt = array();
}	
foreach($form as $field)  
{ 
	if(!$field->isHidden()){ 
		if(key_exists($field->getName(), $extraAtt)){
			$att = $extraAtt[$field->getName()]['attributes'];
			echo $field->renderRow($att);
		}else{
    		echo $field->renderRow();
		}
	}  
}
?>

<div id="buttons" style="width: 80%; text-align: right;">
<a href="javascript:refresh();"><img src="/../images/report_refresh.png" title="Refresh"/></a>
</div>
</fieldset>
</form>